//
//  HTTPPlugin.m
//  Pure Dates
//
//  Created by Jiang on 2018/3/23.
//  Copyright © 2018年 Jiang. All rights reserved.
//

#import "HTTPPlugin.h"

@implementation HTTPPlugin
- (id<SFNPlugin> (^)(id<SFNPlugin>))addNext{
    __weak typeof(self) weakSelf = self;
    return ^id <SFNPlugin> (id <SFNPlugin> plugin) {
        weakSelf.next = plugin;
        return plugin;
    };
}
- (void)retryClosure:(NSURLSessionTask *(^)(void))reload{
    self.retryClosure = reload;
}
@end
